\documentclass[9pt]{article}

% TODO
% Q13 More questionnaire questions
% Q1D Explain diagrams and state assumptions
\usepackage{url}\usepackage{graphicx}
\usepackage{txfonts}\usepackage{lscape}\usepackage{helvet}
\usepackage{ulem}

\usepackage{ifthen}

\newcommand{\forLoop}[5][1]
{%
\setcounter{#4}{#2}%
\ifthenelse{ \value{#4}<#3 }%
	{%
	#5%
	\addtocounter{#4}{#1}%
	\forLoop[#1]{\value{#4}}{#3}{#4}{#5}%
	}%
% Else
	{%
	\ifthenelse{\value{#4}=#3}%
		{%
		#5%
		}%
	% Else
		{}%
	}%
}

\newcommand{\forloop}[5][1]%
{%
\setcounter{#2}{#3}%
\ifthenelse{#4}%
{%
#5%
\addtocounter{#2}{#1}%
\forloop[#1]{#2}{\value{#2}}{#4}{#5}%
}%
%Else
{%
}%
}%

% \renewcommand{\familydefault}{\sfdefault}\usepackage{float} % lets us use the 'H' specifier and shout down LaTeX fig placement
\makeatletter
% Make paragraphs with titles start on a new line\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%  {-3.25ex\@plus -1ex \@minus -.2ex}%  {1.5ex \@plus .2ex}%  {\normalfont\normalsize\bfseries}}
% Define thickrulefill for a horizontal rule
\def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@}

% Redefine maketitle for a posh title page
\def\maketitle{%
  \null
  \thispagestyle{empty}%
  \vfill
  \begin{center}\leavevmode
    \normalfont
    {\LARGE\raggedleft \@author\par}%
    \thickhrulefill\par
    {\huge\raggedright \@title\par}%
    \vskip 5cm
    {\Large \@date\par}%
  \end{center}%
  \vfill
  \null
  \cleardoublepage
  }
\makeatother


\newenvironment{checkboxes}{
\begin{itemize}
	\renewcommand{\labelitemi}{$\Box$}
	\setlength{\itemsep}{1pt}
	\setlength{\parskip}{0pt}
	\setlength{\parsep}{0pt}
}{\end{itemize}}


% Title info.\title{G52LSS Coursework}\author{Group 4\footnote{Rob Golding, Ben Jenkinson, Rob Miles, Marcus Whybrow}} % Alphabetical order\date{December 2009}
% Margins\setlength{\topmargin}{-.4in}\setlength{\textheight}{9in}\setlength{\oddsidemargin}{.125in}\setlength{\textwidth}{6.25in}\begin{document}
	\maketitle
	\newpage	\tableofcontents
	\newpage	\input{q1a.tex}	\newpage	\input{q1b.tex}	\newpage	\input{q1c.tex}	\newpage	\input{q1d.tex}	\newpage	\input{q1e.tex}	\newpage	\input{q1f.tex}	\newpage	\input{q1g.tex}\end{document}
